name := "ship-rpc"

version := "0.1"

scalaVersion := "2.12.8"

val igniteVersion = "2.7.0"

// https://mvnrepository.com/artifact/org.apache.ignite/ignite-core
libraryDependencies ++= Seq(
  "org.apache.ignite" % "ignite-core" % igniteVersion,
  "org.apache.ignite" % "ignite-indexing" % igniteVersion,
  "org.apache.ignite" % "ignite-spring" % igniteVersion,
  "org.apache.ignite" % "ignite-log4j" % igniteVersion,
  "org.apache.ignite" % "ignite-scalar" % igniteVersion
)


PB.targets in Compile := Seq(
  PB.gens.plugin("grpc-java") -> (sourceManaged in Compile).value,
  PB.gens.java -> (sourceManaged in Compile).value
)


libraryDependencies ++= Seq(
  "io.grpc" % "grpc-netty" % scalapb.compiler.Version.grpcJavaVersion,
  "com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
  "com.thesamet.scalapb" %% "scalapb-json4s" % "0.9.0"
)

libraryDependencies += "com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"
libraryDependencies += "io.grpc" % "grpc-services" % scalapb.compiler.Version.grpcJavaVersion
libraryDependencies += "io.grpc" % "protoc-gen-grpc-java" % "1.23.0" asProtocPlugin()


libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.5.23",
  "com.typesafe.akka" %% "akka-testkit" % "2.5.23" % Test
)

// https://mvnrepository.com/artifact/mysql/mysql-connector-java/
libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.47"

// https://mvnrepository.com/artifact/org.json4s/json4s-native
libraryDependencies += "org.json4s" %% "json4s-native" % "3.6.6"

scalacOptions += "-Ypartial-unification" // 2.11.9+

libraryDependencies += "com.github.nscala-time" %% "nscala-time" % "2.22.0"
libraryDependencies += "org.apache.ignite" % "ignite-core" % igniteVersion
libraryDependencies += "com.github.servanter" % "netsfjson-support-spring" % "1.0.0"
libraryDependencies += "junit" % "junit" % "4.12" % Test
libraryDependencies += "org.junit.jupiter" % "junit-jupiter-api" % "5.4.0" % Test
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.29"

// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
libraryDependencies += "org.slf4j" % "slf4j-log4j12" % "1.7.29"


